package Bsepuer.command;

import BesuperApp.pojo.Player;

public abstract class CommandFactory {
	public enum CommandCode{
		//System
		HELP,
		LIST,
		LOGIN,
		REGISTER,
		//player
		ASK,
		ANSWER,
		SCORE,
		ACCEPT,
		EXIT;
	}

	public static CommandFactory getFactory(Player player){
		if(player ==null){
			return new SystemCommandFactory();
		}
		return new PlayerCommandFactory(player);
	}
	public abstract Command buildCommand(CommandCode cmd);
	
}
